package com.tuanzi.loan.business.service.product.space.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.entity.product.space.LoanProductSpaceProduct;
import com.tuanzi.loan.business.repository.product.space.LoanProductSpaceProductRepository;
import com.tuanzi.loan.business.service.product.space.LoanProductSpaceProductService;
import com.tuanzi.loan.core.aspect.Debug;

@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class LoanProductSpaceProductServiceImpl implements LoanProductSpaceProductService {

	@Autowired
	private LoanProductSpaceProductRepository loanProductSpaceProductRepository;

	@Override
	public List<LoanProductSpaceProduct> findAllBySpaceId(Long spaceId) {
		return loanProductSpaceProductRepository.findAllBySpaceId(spaceId);
	}
}
